import 'package:app_core/app_core.dart';

enum AddDeviceIntl with IntlBase {
  addDevice,
  searchingDevices,
  addDeviceTitle,
  wifiConnection,
  onlySupports,
  wifi24GHz,
  selectWifi,
  network,
  wifiPassword,
  wifiName,
  enterWifiPassword,
  passwordNote,
  cancel,
  confirm,
  connectionFailed,
  routerTimeout,
  checkEnsure,
  checkEnsure2,
  retry,
  connecting,
  keepAppForeground,
  connectingToRouter,
  registeringDevice,
  connectingToIotService,
  turnOnWifi,
  wifiRequired,
  turnOnBluetooth,
  bluetoothRequired,
  turnOnLocation,
  locationRequired,
  enableWifi,
  enableBluetooth,
  turnOnWifiAndConnect,
  turnOnLocalNetwork,
  allowBluetoothPermission,
  goToSet,
  exitConnection,
  connectionSuccess,
  setDeviceName,
  deviceName,
  chooseRoom,
  bedroom,
  livingRoom,
  guestRoom,
  studyRoom;

  @override
  String get en {
    switch (this) {
      case AddDeviceIntl.addDevice:
        return 'Add Device';
      case AddDeviceIntl.searchingDevices:
        return 'Searching for nearby devices...';
      case AddDeviceIntl.addDeviceTitle:
        return 'Add Device';
      case AddDeviceIntl.wifiConnection:
        return 'Wi-Fi Connection';
      case AddDeviceIntl.onlySupports:
        return 'Only supports';
      case AddDeviceIntl.wifi24GHz:
        return '2.4GHz Wi-Fi.';
      case AddDeviceIntl.selectWifi:
        return 'Select the Wi-Fi network you want the device to connect to and enter the Wi-Fi password.';
      case AddDeviceIntl.network:
        return 'Network';
      case AddDeviceIntl.wifiPassword:
        return 'Wi-Fi Password';
      case AddDeviceIntl.wifiName:
        return 'Wi-Fi Name';
      case AddDeviceIntl.enterWifiPassword:
        return 'Enter the Wi-Fi Password';
      case AddDeviceIntl.passwordNote:
        return 'Please note that the password is case-sensitive.';
      case AddDeviceIntl.cancel:
        return 'Cancel';
      case AddDeviceIntl.confirm:
        return 'Confirm';
      case AddDeviceIntl.connectionFailed:
        return 'Connection Failed';
      case AddDeviceIntl.routerTimeout:
        return 'Router Connection Timeout';
      case AddDeviceIntl.checkEnsure:
        return 'Please check and ensure:\n1. The WiFi password is entered correctly.\n2. The device is close to your mobile device and router.\n3. Your router security is set to WPA2 or WPA, not OWE/WPA3.\n4. If your router has a whitelist (MAC address filtering) enabled, disable this feature or enter the device MAC address:';
      case AddDeviceIntl.checkEnsure2:
        return "Network connection/router Settings You can contact the network operator first to solve the problem. If you try the above measures and still can not be successfully paired, please click \"feedback\" to get technical support.";
      case AddDeviceIntl.retry:
        return 'Retry';
      case AddDeviceIntl.connecting:
        return 'Connecting';
      case AddDeviceIntl.keepAppForeground:
        return 'Please keep the app in the foreground during pairing.';
      case AddDeviceIntl.connectingToRouter:
        return 'Connecting to Router';
      case AddDeviceIntl.registeringDevice:
        return 'Registering Device';
      case AddDeviceIntl.connectingToIotService:
        return 'Connecting to IoT Service';
      case AddDeviceIntl.turnOnWifi:
        return 'Turn on Wi-Fi';
      case AddDeviceIntl.wifiRequired:
        return 'Wi-Fi is required to search for devices.';
      case AddDeviceIntl.turnOnBluetooth:
        return 'Turn on Bluetooth';
      case AddDeviceIntl.bluetoothRequired:
        return 'Bluetooth makes your device more discoverable.';
      case AddDeviceIntl.turnOnLocation:
        return 'Turn on Location';
      case AddDeviceIntl.locationRequired:
        return 'Location is required to detect and connect to nearby devices.';
      case AddDeviceIntl.enableWifi:
        return 'Enable Wi-Fi';
      case AddDeviceIntl.enableBluetooth:
        return 'Enable Bluetooth';
      case AddDeviceIntl.turnOnWifiAndConnect:
        return 'Turn on Wi-Fi and Connect';
      case AddDeviceIntl.turnOnLocalNetwork:
        return 'Turn on Local Network';
      case AddDeviceIntl.allowBluetoothPermission:
        return 'Allow Bluetooth Permission';
      case AddDeviceIntl.goToSet:
        return 'Go to set';
      case AddDeviceIntl.exitConnection:
        return 'Exit Connection';
      case AddDeviceIntl.connectionSuccess:
        return 'Connection Successful';
      case AddDeviceIntl.setDeviceName:
        return 'Set your device name';
      case AddDeviceIntl.deviceName:
        return 'Device Name';
      case AddDeviceIntl.chooseRoom:
        return 'Choose Room';
      case AddDeviceIntl.bedroom:
        return 'Bedroom';
      case AddDeviceIntl.livingRoom:
        return 'Living Room';
      case AddDeviceIntl.guestRoom:
        return 'Guest Room';
      case AddDeviceIntl.studyRoom:
        return 'Study Room';
    }
  }

  @override
  String get zh {
    switch (this) {
      case AddDeviceIntl.addDevice:
        return '添加设备';
      case AddDeviceIntl.searchingDevices:
        return '正在搜索附近设备...';
      case AddDeviceIntl.addDeviceTitle:
        return '添加设备';
      case AddDeviceIntl.wifiConnection:
        return 'Wi-Fi 连接';
      case AddDeviceIntl.onlySupports:
        return '仅支持';
      case AddDeviceIntl.wifi24GHz:
        return '2.4GHz Wi-Fi。';
      case AddDeviceIntl.selectWifi:
        return '选择您希望设备连接的 Wi-Fi 网络并输入 Wi-Fi 密码。';
      case AddDeviceIntl.network:
        return '网络';
      case AddDeviceIntl.wifiPassword:
        return 'Wi-Fi 密码';
      case AddDeviceIntl.wifiName:
        return 'Wi-Fi 名称';
      case AddDeviceIntl.enterWifiPassword:
        return '输入 Wi-Fi 密码';
      case AddDeviceIntl.passwordNote:
        return '请注意，密码区分大小写。';
      case AddDeviceIntl.cancel:
        return '取消';
      case AddDeviceIntl.confirm:
        return '确认';
      case AddDeviceIntl.connectionFailed:
        return '连接失败';
      case AddDeviceIntl.routerTimeout:
        return '路由器连接超时';
      case AddDeviceIntl.checkEnsure:
        return '请检查并确保:\n1. WiFi密码输入正确。\n2. 该设备靠近您的移动设备和路由器。\n3. 您的路由器安全设置为WPA2或WPA，而不是OWE/WPA3。\n4. 如果您的路由器启用了白名单 (MAC地址过滤)，请关闭此功能或输入设备MAC地址:';
      case AddDeviceIntl.checkEnsure2:
        return "网络连接/路由器设置问题您可先行联系网络运营商咨询解决如果尝试上述措施后仍无法配对成功，请点击去反馈以获得技术支持。";
      case AddDeviceIntl.retry:
        return '重试';
      case AddDeviceIntl.connecting:
        return '连接中';
      case AddDeviceIntl.keepAppForeground:
        return '请将手机靠近设备。在配对期间，请保持Dreo在前台运行。';
      case AddDeviceIntl.connectingToRouter:
        return '连接到路由器';
      case AddDeviceIntl.registeringDevice:
        return '注册设备';
      case AddDeviceIntl.connectingToIotService:
        return '连接到IOT服务';
      case AddDeviceIntl.turnOnWifi:
        return '打开 Wi-Fi';
      case AddDeviceIntl.wifiRequired:
        return '需要 Wi-Fi 才能搜索设备。';
      case AddDeviceIntl.turnOnBluetooth:
        return '打开蓝牙';
      case AddDeviceIntl.bluetoothRequired:
        return '蓝牙使您的设备更易被发现。';
      case AddDeviceIntl.turnOnLocation:
        return '打开位置';
      case AddDeviceIntl.locationRequired:
        return '需要位置才能检测和连接到附近的设备。';
      case AddDeviceIntl.enableWifi:
        return '启用 Wi-Fi';
      case AddDeviceIntl.enableBluetooth:
        return '启用蓝牙';
      case AddDeviceIntl.turnOnWifiAndConnect:
        return '打开 Wi-Fi 并连接';
      case AddDeviceIntl.turnOnLocalNetwork:
        return '打开本地网络';
      case AddDeviceIntl.allowBluetoothPermission:
        return '允许蓝牙权限';
      case AddDeviceIntl.goToSet:
        return '去设置';
      case AddDeviceIntl.exitConnection:
        return '退出连接';
      case AddDeviceIntl.connectionSuccess:
        return '配网成功';
      case AddDeviceIntl.setDeviceName:
        return '设置设备名称';
      case AddDeviceIntl.deviceName:
        return '设备名称';
      case AddDeviceIntl.chooseRoom:
        return '选择房间';
      case AddDeviceIntl.bedroom:
        return '卧室';
      case AddDeviceIntl.livingRoom:
        return '客厅';
      case AddDeviceIntl.guestRoom:
        return '客房';
      case AddDeviceIntl.studyRoom:
        return '书房';
    }
  }
}
